package com.zzkj.view.widgets.AutoCompleteTextInput.utils
{
	import flash.display.InteractiveObject;
	
	import mx.core.Application;
	
	public class FlexUtils
	{
		public static function isChildOf( object:InteractiveObject, parentObject:InteractiveObject ):Boolean
		{
			if (!object || !parentObject)
			{
				return false;
			}
			
			if (object == parentObject)
			{
				return true;
			}
			
			while (object.parent != null)
			{
				object = object.parent;
				
				if (object == parentObject)
				{
					return true;
				}
			}
			
			return false;
		}
	}
}